package cn.edu.hqu.cst.android.ljc.test2;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Button btn1 = findViewById(R.id.UC1);
        btn1 .setOnClickListener(view -> {
            Intent i = new Intent(MainActivity.this , uc1.class);
            startActivity(i);
        });

        Button btn2 = findViewById(R.id.UC2);
        btn2 .setOnClickListener(view -> {
            Intent i = new Intent(MainActivity.this , uc2.class);
            startActivity(i);
        });

        Button btn3 = findViewById(R.id.UC3);
        btn3 .setOnClickListener(view -> {
            Intent i = new Intent(MainActivity.this , uc3.class);
            startActivity(i);
        });

        Button btn4 = findViewById(R.id.UC4);
        btn4 .setOnClickListener(view -> {
            Intent i = new Intent(MainActivity.this , uc4.class);
            startActivity(i);
        });

        Button btn5 = findViewById(R.id.UC5);
        btn5 .setOnClickListener(view -> {
            Intent i = new Intent(MainActivity.this , uc5.class);
            startActivity(i);
        });
    }
}
